'''
Created on Jul 20, 2012

@author: liyang
'''
import urllib.request
import sys
from bs4 import BeautifulSoup
from html.parser import HTMLParser
type = sys.getfilesystemencoding()
request = urllib.request.Request("http://www.sasac.gov.cn/n1180/n1271/n20500/index.html")
response = urllib.request.urlopen(request)
the_page = response.read()
parser = BeautifulSoup(the_page,from_encoding="utf-8")

for link in parser.find_all('a'):
    content = link.get_text()
    if(content.find('招聘') > 0):
        print(content)
    
if __name__ == '__main__':
    pass